package cn.tedu.oa_system.pojo.in;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Author MW
 * @Description 模糊分页查询访问实体类
 * @CreateDate 2023/2/26
 */
@Data
public class FindLikeKeyIn implements Serializable {

    static final long serialVersionUID = 1L;

    private Long current;

    private Long size;

    private String likeKey;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FindLikeKeyIn that = (FindLikeKeyIn) o;
        return Objects.equals(current, that.current) && Objects.equals(size, that.size) && Objects.equals(likeKey, that.likeKey);
    }

    @Override
    public int hashCode() {
        return Objects.hash(current, size, likeKey);
    }

    @Override
    public String toString() {
        return "FindLikeKeyIn{" +
                "current=" + current +
                ", size=" + size +
                ", likeKey='" + likeKey + '\'' +
                '}';
    }
}
